#include "wvstreams/uniconfroot.h"
#include "wvstreams/wvstream.h"

int main(int argc, char **argv)
{
    if (argc <= 2)
    {
	wverr->print("Usage: %s <uniconf-source> <uniconf-dest>\n"
		     " Copies uniconf data from source to dest.\n"
		     " Example: %s ini:/tmp/file.ini tcp:localhost:4242\n",
		     argv[0], argv[0]);
	return 1;
    }
    
    UniConfRoot r1(argv[1]);
    UniConfRoot r2(argv[2]);
    
    r1.copy(r2, true);
    r2.commit();
    return 0;
}
